package com.zemo.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.tgb.entity.User;
import com.zemo.dao.CommentDao;
import com.zemo.dao.ProductDao;
import com.zemo.entity.Comment;
import com.zemo.entity.Product;
import com.zemo.service.CommentService;
import com.zemo.service.ProductService;

/**
 * @ClassName: ProductServiceImpl
 * @author: SuperZemo
 * @date: Mar 31, 2014 1:58:02 AM
 * @email:chenzeming@lanbaoo.com
 * @Description: 评论
 */
@Service
@Transactional
public class CommentServiceImpl implements CommentService {
	
	@Autowired
	private CommentDao commentDao;

	@Override
	public List<Comment> listAllComment() {
		return commentDao.listAllComment();
	}
	/*
	 * (non-Javadoc)
	 * @see com.zemo.service.CommentService#addComment(com.zemo.entity.Comment)
	 * 添加商品评价
	 */
    @Override  
    public void addComment(Comment comment) {  
	        commentDao.addComment(comment);  
	   }  
}
